#三天不变，四天递增，一天中断
dayup = 1.0
X=0.01
temp=0
state="学习"
for i in range(365):
    state=input("学习状态")#模拟有几天中断
    temp= i % 7
    if state == '学习' and (temp in [1, 2, 3]):
    #if temp in ([1, 2, 3]):
        dayup = dayup
        #temp = (temp + 1) % 7
        temp = temp + 1
    elif state == '学习' and (temp in [0, 4, 5, 6]):
    #elif temp in ([0, 4, 5, 6]):
        dayup = dayup * (1 + X)
        temp = temp +1
    elif state == '不学':
        temp = 0
print(dayup)
